import base64

with open('base64.txt', 'r') as f:
    s = f.read().encode('ascii')

b = base64.b64decode(s)
with open('vcode.png', 'wb+') as f:
    f.write(b)
    f.close()
